cls
@echo off

del .\bin\fileS.exe

setlocal

if exist run.bat goto ok
echo run.bat must be run from its folder
goto end

:ok

set GOBIN=
set OLDGOPATH=%GOPATH%
set GOPATH=%~dp0

gofmt -w src

go install fileS

:end
echo [FINISHED]
echo.

::cls
rem SET FILES_MODE=production
SET FILES_MODE=development
.\bin\fileS.exe -ROOT_PATH=D:/fileS -AUTH_SERV="http://127.0.0.1:3001/acl/?"
